export default defineAppConfig({
  lazyCodeLoading: "requiredComponents",
  pages: [
    "pages/home/index",//首页
    "pages/my/index",//我的
    "pages/cate/index",//分类
    "pages/shop/index",//购物车
    // "pages/detail/index",
    // "pages/checkout/checkout",
    // "pages/cate/list-view",
    // "pages/my/business",
    // "pages/my/recharge"
  ],
  subPackages: [
    {
      root: "pages-detail",
      pages: [
        "checkout/checkout",//订单结算
        "detail/index",//商品详情
        "my/business-info",//商家详情
        "cate/list-view", //分类列表
        "my/recharge",  //充值
        "my/address", //地址管理
        "my/order", //订单管理
        "my/code", //我的消费码
        "my/dicty", //我的网体
        "my/withdraw", //提现记录
        'my/recommend', //我的推荐
        "addr/index", //新增地址
        "coupon/index", //优惠券
        "balance/index", //余额
        "shop/name", //店铺名称
        "shop/addr", //店铺地址
        "shop/photo", //店铺图片
        "shop/map", //店铺地图位置
        "order/detail", //订单详情
      ],
    },
  ],
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#000000",
    // navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "white",
  },
  requiredPrivateInfos: [
    'chooseAddress'
  ],
  permission: {
    "scope.userLocation": {
      desc: "你的位置信息将用于小程序位置接口的效果展示", // 定位权限说明
    },
    'scope.address': {
      desc: '需要获取您的收货地址用于订单配送' // 权限申请时的描述
    },
    "scope.userInfo": {
      "desc": "获取用户信息"
    }
  },
  // plugins: [
  //   '@tarojs/plugin-framework-vue3'
  // ],
  tabBar: {
    custom: false,
    color: "#000000",
    selectedColor: "#f7a93b",
    list: [
      {
        pagePath: "pages/home/index",
        text: "首页",
        iconPath: "assets/icon/home.png",
        selectedIconPath: "assets/icon/home-a.png",
      },
      {
        pagePath: "pages/cate/index",
        text: "关于我们",
        iconPath: "assets/icon/cate.png",
        selectedIconPath: "assets/icon/cate-a.png",
      },
      {
        pagePath: "pages/shop/index",
        text: "一键预约",
        iconPath: "assets/icon/shop.png",
        selectedIconPath: "assets/icon/shop-a.png",
      },
      {
        pagePath: "pages/my/index",
        text: "我的",
        iconPath: "assets/icon/my.png",
        selectedIconPath: "assets/icon/my-a.png",
      },
     
    ],
  },
});
